<?php get_header(); ?>				
	<?php if(is_search()):?>
	<div id="page">
<?php $search=get_search_query();
wp_reset_query();
$args = array(
		
		'showposts'=>3,

		meta_query => array(
				array(
						'key' => 'seri',
						'value' => $search,
						'compare' => '='
				)
		)
);
query_posts($args);

if(have_posts()){
	the_post();
	the_content();
	
	$type=post_custom('type');
	if(empty($type))$type='Arowana<br />Yuki super king red';
	$location=post_custom('location');
	if(empty($location))$location='West Kalimantan INDONESIA';
	$distributor=post_custom('distributor');
	if(empty($distributor))$distributor='Surabaya Red';
	$dayof=post_custom('dayof');
	if(empty($dayof))$dayof='27 - 07 - 2013';
	$placesold=post_custom('placesold');
	if(empty($placesold))$placesold='Huy Thao Arowana (Vietnam)';
	
	
	?>
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr><th>Tag ID:</th>
<td><h2 style="font-size:1em"><?php echo post_custom('seri')?></h2></td>
</tr>
<tr><th width="100px" valign="top">Type:</th>
<td><?php echo $type?></td>
</tr>
<tr><th>Location:</th>
<td><?php echo $location?></td>
</tr>
<tr><th>Distributor:</th>
<td><?php echo $distributor?></td>
</tr>
<tr><th>Day of:</th>
<td><?php echo $dayof?></td>
</tr>
<tr><th>Place to Sold:</th>
<td><?php echo $placesold?></td>
</tr>
<?php $content=$post->post_content;if(!empty($content)):?>
<tr><th>Description:</th>
<td><?php echo do_shortcode($content);?></td>
</tr>
<?php endif;?>
</tbody>
</table>
	
	<?php 
}
else{
?>
	Tags ID not found! Please check you correct Tags ID.
<?php }?>
</div>
				<?php else:?>
				
					<div id="left">
					<div id="cf4a">
						<img src="<?php echo get_template_directory_uri()?>/images/banner.jpg" />
						<img src="<?php echo get_template_directory_uri()?>/images/banner2.jpg" />
						<img src="<?php echo get_template_directory_uri()?>/images/banner4.jpg" />
						<img src="<?php echo get_template_directory_uri()?>/images/banner5.jpg" />
						<img src="<?php echo get_template_directory_uri()?>/images/banner6.jpg" />
						</div>
					</div>
					<div id="right">
						<div id="video">
							<div class="boxtitle smalltab"><div><span>Video</span></div></div>
							<iframe width="240" height="160" src="//www.youtube.com/embed/BviLEgYFysA" frameborder="0" allowfullscreen></iframe>
							<div id="videotitle">Indonesia Red Arowana</div>
							<div id="videodesc">Yuki Red Arowana 17-18"</div>
						</div>
						<div class="boxtitle"><div><span>Contact</span></div></div>
						<div class="boxcontent">
							<b style="color:#f0a70c">DIRECTOR</b><br /><br class="fullscreen" />

Name: Mr. Santoso Poernomo<br />
Address: Wisma Permai Barat, Surabaya<br /> 
Propinsi Jawa Timur, Indonesia<br />
Cell phone: 813 336 666 22<br />
Email: <a href="mailto:yukisuperred@yahoo.co.id">yukisuperred@yahoo.co.id</a><br />
<br class="fullscreen" />

						</div>
					</div>
					<div class="clear"></div>	
					<?php endif?>					
<?php get_footer(); ?>